You are here: Statements and Functions > Close
Syntax samples
CLOSE <file ID>
CLOSE Arrival_File
Closes a file that has previously been written to with WRITE, WRITELINE, XWRITE, or read with READ. Use CLOSE when finished with a file to free system resources. A file will automatically be re-opened to be read or written if it has been closed. All opened files are automatically closed at the end of a simulation. When you are using many external files and you want to conserve system resources, this statement is especially helpful.
Any logic.
Components
<file ID>
The file ID of the desired file as defined in the External Files editor.
READ, WRITE, WRITELINE, XWRITE, and RESET.